package com.ibiaoke.goods.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.goods.entity.Goods;
import com.ibiaoke.goods.entity.PtGoods;

import java.util.List;

/**
 * Created by Administrator on 2017/6/7.
 */
public interface GoodsService {
    /**
     * 商品查询
     * @param goodsId 商品编号
     * @param status  商品上架状态
     * @param goodsName 商品名称
     * @param cateId 商品分类
     * @param shopId
     *@param page  @return
     */
    List<Goods> listGoods(Integer goodsId, Integer status, String goodsName, Integer cateId, Integer shopId, Page page);

    int deleteGoodsById(Integer goodsId);

    int batchDeleteGoods(String goodsIds);

    int batchUpdateGoodsStatus(String goodsId, Integer status);

    int batchSaveGoods(Goods goods, String shopIds);

    int saveGoods(Goods goods);

    int updateGoodsById(Goods goods);

    Goods getGoodsByGoodsId(Integer goodsId, Integer shopId);

    /*微信*/
    List<Goods> listGoodsByGoodsClass(Integer cateId, Integer shopId, Page page);

    List<Goods> listGoods(List<Integer> goodsIds, Integer shopId);

    /*通过商品name，查询需要参加的拼团商品*/
    Goods getGoodByPt(String goodName);
 }
